list comprehension python one line

31

doubled_odds = [n * 2 for n in numbers if n % 2 == 1]

Comments

Submit
0 Comments